﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Product
/// </summary>
public class product
{
    private int product_id;
    private string product_name;
    private string product_des;
    private int product_quantity;
    private int unit_id;
    private string image;
    private int manufacturer_id;
    private int price;
    private DateTime date_available;
    private bool status;
    private DateTime date_added;
    private DateTime date_modified;
    private int viewed;
    private int sort_order;

#region property

    public int Product_id
    {
        get { return product_id; }
        set { product_id = value; }
    }
    public string Product_name
    {
        get { return product_name; }
        set { product_name = value; }
    }
    public string Product_des
    {
        get { return product_des; }
        set { product_des = value; }
    }
    public int Product_quantity
    {
        get { return product_quantity; }
        set { product_quantity = value; }
    }

    public int Unit_id
    {
        get { return unit_id; }
        set { unit_id = value; }
    }

    public string Image
    {
        get { return image; }
        set { image = value; }
    }

    public int Manufacturer_id
    {
        get { return manufacturer_id; }
        set { manufacturer_id = value; }
    }
    public int Price
    {
        get { return price; }
        set { price = value; }
    }
    public DateTime Date_available
    {
        get { return date_available; }
        set { date_available = value; }
    }
    public bool Status
    {
        get { return status; }
        set { status = value; }
    }
    public DateTime Date_added
    {
        get { return date_added; }
        set { date_added = value; }
    }

    public DateTime Date_modified
    {
        get { return date_modified; }
        set { date_modified = value; }
    }

    public int Viewed
    {
        get { return viewed; }
        set { viewed = value; }
    }

    public int Sort_Order
    {
        get { return sort_order; }
        set { sort_order = value; }
    }
#endregion
    public product()
	{
		//
		// TODO: Add constructor logic here
		//
        this.product_id = 0;
        this.product_name = "";
        this.product_des = "";
        this.product_quantity = 0;
        this.unit_id = 0;
        this.image = "";
        this.manufacturer_id = 0;
        this.price = 0;
        this.date_available = DateTime.Now;
        this.status = true;
        this.date_added = DateTime.Now;
        this.date_modified = DateTime.Now;



	}
    public product(int product_id, string product_name, string product_des, int product_quantity,int unit_id,string image,
        int manufacturer_id,int price,DateTime date_available,bool status,DateTime date_added,DateTime date_modified
        
    )
    {
        //
        // TODO: Add constructor logic here
        //
        this.product_id = product_id;
        this.product_name = product_name;
        this.product_des = product_des;
        this.product_quantity = product_quantity;
        this.unit_id = unit_id;
        this.image = image;
        this.manufacturer_id = manufacturer_id;
        this.price = price;
        this.date_available = date_available;
        this.status = status;
        this.date_added = date_added;
        this.date_modified = date_modified;

    }
}